
<ion-view>
  <ion-content class="reg forms">
    <h2 class="padding">注册</h2>
    <form ng-submit="postForm()">
      <div class="list list-inset">
        <label class="item item-input">
          <i class="icon ion-android-contact placeholder-icon"></i>
          <input type="text" name="username" ng-model="formData.username" placeholder="账号"/>
        </label>
      </div>
      <div class="list list-inset">
        <label class="item item-input">
          <i class="icon ion-ios-locked-outline placeholder-icon"></i>
          <input type="password" name="password" ng-model="formData.password" placeholder="密码"/>
        </label>
      </div>
      <div class="list list-inset">
        <label class="item item-input">
          <i class="icon ion-ios-locked-outline placeholder-icon"></i>
          <input type="password" name="password-repeat" ng-model="formData.password2" placeholder="确认密码"/>
        </label>
      </div>
      <div class="list-inset">
        <button class="button" type="submit">
          注册
        </button>
      </div>

    </form>
  </ion-content>
</ion-view>
